package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("bd_activity")
@Data
//@Builder
public class BdActivity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String quatationId;
    private String name;
    private String startDate;
    private String endDate;
    private String guestName;
    private Integer guestCount;
    private String status;
    private String venue;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date activityTime;
    private String duty;
    private String area ;
//    @TableLogic
    private Boolean isActive;
    private Boolean isNeedBuild;
    private Boolean isHaveLeave;
    @TableField(exist = false)
    private Integer unqualifiedNum;
//    private String userId;
    // TableField注解表示数据库不存在的字段，而Java中需要使用，加上这个注解就不会报错
//    @TableField(exist = false)
//    private String username;
}
